Make MiniYARNCluster to wait for app masters to finish before shutdown
Merge branch 'fixing-testmrjobs' of github.com:aklochkovgd/hadoop-common into fixing-testmrjobs