When apps_startup() fails, exit with a failure code and a message