limit connector delete only when no task execute and the status is closed