How do I get rid of the delay when my program ends

BlitzMax Forums/BlitzMax Programming/How do I get rid of the delay when my program ends

Maybe it has to reload/wipe images in video ram as you switch?