updated to just error and exit if log is not writable
: