Made server single-threaded and fixed disconnection handling