Initialize error file writer in static constructor