To shutting down gracefully