clean up thread pools and thread objects