Support starting the server in the background, socket options, and fixes a critical race condition bug