Stop loading a file before it finishes?

Hi All,

I was wondering if anyone knows of a way to stop loading a file (in this case an XML file) before it finishes? Because right now, if a user decides to load a different page while the first is loading, it causes an error.

Cheers.