Clean up error handling in `core_apps_newapi`
This module mixes exceptions, booleans, logging and other error handling styles, all in one module - it needs refactoring to use one error handling style only.