FIX #4712 - Exception on writing log