code: func NewWriteCloserOnError(w io.WriteCloser, notify func(error)) io.WriteCloser {
  	return NewWriteCloser(NewWriterOnError(w, notify), w)
  }
docs: // NewWriteCloserOnError returns a io.WriteCloser that call the notify function
  //when an unexpected (!io.EOF) error happens, after call Write function.