Fixing warning C4101: unreferenced local variable

Well, it might be so but unlikely. 
Judging from the fact that boost::system_error derived from std::runtime_error it would be safe to assume that intention was to handle any abnormal condition.