Graceful shutdown and restart for Go's net/http handlers