clean up task exit in preparation for getting rid of scheduler task