Added a event for when the GUI is closed.

We need to send the disconnect event to the hub when the GUI is closed. The onDisconnect methods in DeviceListener will handle the event.