We loop calls to HAS_MODEL_LOADED to examine if loading succeeded. Because this can be a loop and we're cooperatively multitasked, you will have to give the game time to operate also - in any other case It's going to never even finish loading and the game will regretably freeze. Following preserving the file, shut it and try to load the server.