Results 2 issues of Nicolas Berger

A simplified alternative to #330. As discussed with @danielcompton in that other PR, this is a less invasive and easier to explain/document way to handle exceptions. Adds a global error...