end task with exception if necessary
rename resume to run