How to stop VBA program with GUI active?

Is there a possibility to stop the program if you don't have VBA console open? Solidworks becomes unclickable if GUI doesn't have exit routine. So you are stuck at it. Is there a way to get out?