Experemental code for CPP exception catching from C++