[WIP] Expanded scope of the try/except block in the error reporter

Waiting for Jan to explicitly approve this.