Added a command to stop PumpMessages()