The server needs to be updated to send a "I am closing"
event when it shuts down gracefully. That way if a
client is disconnected without getting that event, it
should attempt to reconnect.
A dialog should pop up notifying the user of the
reconnection, and provide a Cancel button to bypass the
The client should use the exact same information as the
previous connection to connect.