added emr usage tracking shutdown