Remove runtime exceptions (to better support Emscripten)