A better run function for the exceptions