on broken pipes - ie program exit, EBADF can will be used instead of EPIPE. This commit will allow pipe command to be restarted.