terminate gracefully on shutdown signal from top supervisor