Catch double-exit crash with IllegalStatException