tidied up code and window placement. chatserver seems to be causing hang on quit and throwing a timer error too..