Some exception handling for models