If you have a read events you need a coresponding clear events somewhere to end the application. I the attempt to clsoe the app is to use the close box (X) in the right corner of the window then you may need an ON SHUTDOWN set up in your startup program. It is documented in the help file.