Quit is a replacement for event "exit" to make sure the event will not be skipped by uncaughtException