Exit from runTask method if task not found