Currently HMON FFI is returning values or void, and many errors are raise panic.
Panic in extern "C" functions cannot unwind, which causes terminate.
Replace return values with a shared return code so no panics occur on the interface and C++ layer is able to determine erroneous state.