exitApp reformatted