In response to your question about pascal:
I'm not sure what exactly it is you want, but maybe these will help:
halt command. Halts (closes) the program and returns to the operating system.
exit command. Exits the current loop. Exit is useful for large if else blocks.
I don't check hive that often, as you guessed, so it's probably better to email me instead. I'll just go and enable that on my profile now.