TEZ-1620. Wait for application finish before stopping MiniTezCluster (Jeff Zhang via bikas)