reestablish error writer after test