Moved socket.accept() to its own thread