Hacked around MSVC's compile error with catch(...) in template's :(