Fixed race-condition during server shut down where boost::asio::io_service was sometimes destroyed too early