Begin app exit code