You're saying "the main body". Is there more? If you have another loop with a long wait time in it, you'll have to wait until it completes the current iteration and the next one before it stops. There shouldn't be any cleanup or grabage collection holding you.
To watch the execution, you can turn on Highlight execution (the light bulb button) and see exactly which code is running. If this doesn't help, I suggest you post your code.
___________________
Try to take over the world!