shutdown thread-pools to exit successfully