Graceful exit on TERM signal.