ptrim-server: catch SIGPIPE.