Fixed the case where there is a catchall in C++ and a foreign exception
is thrown into it.