Handle normal exit code of the app