Gracefully stop a net/http server