Allow std::runtime_error to be thrown where needed