Graceful shutdown utility for Golang