I need the program I have made to do
a few things nomatter what before
it closes.

When I Press Ctrl+Break the program
pauses and then I press the stop
button and the program doesnt run
through that ending code.

How can I still run that code??