Add a graceful shutdown to RingHandler and an optional :graceful-timeout
parameter to the function used to stop the server.