Functional CLOSE# command when window closes

- The title says it all.
- When the user hits the 'X' to close the window, the client sends a
CLOSE# command to log the user of, before the program is shut down.

Christopher