Oh wait. I have a (hopefully better) idea:

- check if the error if a closed pipe error
- if it is → ignore it
- otherwise → log it

What do you think?