Added awaitTermination-method to thread pool.