Updated WebSocketServer to be able to stop and start multiple times.
Handle unexpected RuntimeExceptions, without shutting down the whole
server.