SPARK-2134: Report metrics before application finishes

Do we also want to `stop()` the metrics system as well?