if IOError but not EPIPE, re-raise the exception