corrected handling the sigterm