Adding some more error handling to deal with when virtuoso throws a error but doesn't report it properly