Don't re-run the onExit if the exiting.locals are null