Move to using std::error

Why are we boxing humans :fearful: