Optimizations for Server

Don't run server unless it can accept connections.