clean up task user function