Re #8365. Clear a compiler warning on Windows.

No reason to catch exception at all if nothing's being done with it.