Cleaned up ServerThread.