This is done by design to stop users trying to abort the script. Type BREAK ON at the begining of your script and you will be able to exit without the PC logging you off.