[WIP] Added C++ exception handling.