put task failure/completion inside ssh block