exit does not stop the compilation of your script. It stops the execution of your already compiled script.
In reply to Re: using exit; by Biker in thread using exit; by costas