I'm not talking about changing the logic regarding ``IsPendingTermination``, just to empty the pipe, so the signal handler doesn't risk getting stuck if the pipe is full.