I'm having the same exact issue. I've tried everything within my means to debug, and it's simply not a logical error.
Tony, your solution doesn't seem to me like it will work because the hang up happens right when it gets to the load_from_url(). How would delaying it by zero seconds help?
Is this an issue with object staying in memory after the script has been run and done with?