Run server on separate thread.
Make listen non-public for server.