avoid crash if logs are not writable