Un-break error handling with debugger enabled

We need to handle these errors even with debugger enabled, to make sure
that the UI is properly updated, and necessary cleanup actions are run.

This reverts commit 8b4347423c90d08e983d30dae8a34db29263d5d1.