Moved terminal server thread to MGSC