Allowing certain exceptions to ignore the debug mode