clean up taskman loop