[3.8] Reset exception handler in tests setup