fixed compile error
notify the unsent data to the handler when the producer is closed.
Merge pull request #5 from tiny657/handler

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