Revert "Minor alteration to handle exceptions that occur during debug runs."

This reverts commit 3bec2afaf48e0a8338ebc37ee1a15c4c7df38262.
Revert "Revert "Minor alteration to handle exceptions that occur during debug runs.""

This reverts commit da64b4a3a4f4e03338b598c0342a754abce8d0ee.