libembroidery error logging and fixes.