[SPARK-3304] ApplicationMaster's Finish status is wrong when uncaught exception is thrown from ReporterThread