Ability to flush a thread pool