A gem for graceful shutdowns