Added code to terminate Task pools ;)