apps_startup() needs a corresponding apps_shutdown().