SPARK-2134: Report metrics before application finishes

(Actually some of these reporters might not even work correctly in a JVM shutdown hook, so I wouldn't do that.)