Fix thread not stop error.

If ExecutorService doesn't shutdown, it may happen.