SPARK-2134: Report metrics before application finishes

Ah I see this is done in `SparkEnv` already