Remove useless test
Convert boost::system_error_code to std::system_error when throwing
Cosmetics