remove task hook