Handle exceptions in the main process

This is a rebased version of @jmacarthur's !248 (closed), and replaces !248 (closed)

Merge request reports

Loading