Fixed ThreadPool, did not actually close all threads when instructed to

do so.