add exception catch in loading model file