func_test: Try to run tearDown when exception happens during test_case run.