Write after closed now returns ErrClosedPipe regardless of the close reason.