Added coms in app and OnClose event management for overall forms