Unittest - Avoid second exception on framework tracing error

* Prevents masking of the initial exception due to a second one.