[CXF-5943] Updating the exception catch to check Throwable, patch from Iris Ding applied