Fixed Endless Loop in ExitError()