Make sure libfsw catches C++ exceptions and correctly sets last_error.