Problems when Exiting

BlitzPlus Forums/BlitzPlus Programming/Problems when Exiting

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm working on a shoot 'em up at the mo. I've done about 1 and a half levels and pretty much everything is going fine apart form one, big, bad bug. Basically what happens is, when I run the program, I get no errors, and if I try to close the game at the title screen, it just closes quickly. but, if I get into the main game, and then I exit, the game can take up to 3 minutes to close, and sometime sit doesn't even close at all =/
Can you tell me why this is happening? The zipped file containing all code and media is here:

Tempral Storm V0.3 [zipped]

Thanks in advance.

BTW, this only shows on level and it just skips straight to the boss, if you're wondering.