in reply to using exit;

exit does not stop the compilation of your script. It stops the execution of your already compiled script.


Everything went worng, just as foreseen.