handle SIGTERM as a soft shutdown