Use std::system_error instead of Cstd_error.