When an exit is requested process all messages before exiting. The atExit flag is set, so no new messages can be added to the buffer.
When an exit is requested process all messages before exiting. The atExit flag is set, so no new messages can be added to the buffer.