if task is not current task, give up and release resources