in reply to GUI Exiting
It would help if you showed us some code which can reproduce your problem. See How do I post a question effectively?