notify the unsent data to the handler when the producer is closed.

The close(remained data) callback is invoked when the producer is closed.