Catch EnvironmentError in DiskMetricsWriter