rapid7/metasploit-framework — pull request #4114 by wchen-r7 (2014-10-31 21:45:47+00:00)
Title: Rescue the correct exception: Rex::HostUnreachable

My fault to miss this mistake while reviewing the module.

To verify, this is where the exception is raised:
https://github.com/rapid7/metasploit-framework/blob/master/lib/rex/socket/comm/local.rb#L294