Expanded scope of the try/except block in the error reporter
Removed orphaned import
Merge better exception handling