Who WROTE this code? Only throw the NOT LOADED error if the model was NOT LOADED. Try not to throw the error when the model WAS successfully loaded.