Added a possibility to define a call back on thread pool die.
Merge pull request #3 from ribeiroct/master

Added a possibility to define a call back on thread pool die.