gui: Reset command buf offset on errors.