TEZ-1682. Tez AM hangs at times when there are task failures. (sseth)
(cherry picked from commit 9220170dd87e26542bcfe3bbdc29871625535e1f)