TEZ-1643. DAGAppMaster kills DAG & shuts down, when RM is restarted. (hitesh)

(cherry picked from commit e9208c0808c2a0649ce336d87534ad6f9cbab818)