Shutting down the server using unref