Fixed a crash that could occur if a unit test case's class setup or teardown methods raised an exception.
Fixed a crash that could occur if a unit test case's class setup or teardown methods raised an exception.

smspillaz/green,CleanCut/green,CleanCut/green,smspillaz/green,krisztianfekete/green,wfxiang08/green,wfxiang08/green,smspillaz/green,wfxiang08/green,krisztianfekete/green