also catch SIGTERM; catch only the 1st signal.