Completing tasks works again
Minor cleanup in task_handler
Uncompleting tasks works