ctutil_file_write_uint16: write the log msg on error, use only one disk write
logging tweaks, mostly to make it quieter