2949f6650e
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.