shutdown on SIGINT and SIGTERM