Fix the exit bug

Bug case fixed:
1+2;
x;
before fix we get error message: Primary() Bad Token