Added close option to server.