Disposed of thread pools after using

Because threads of the pools are kept in background infinitely.
Merge pull request #361 from nobeans/wk/clear-thread

Disposed of thread pools after using