Minor Main cleanup and always write to LOG upon error