Bz 1014414 - Remote Naming throws the same exception for different causes

Bz 1014414 - Remote Naming throws the same exception for different causes
https://bugzilla.redhat.com/show_bug.cgi?id=1014414
This is for the 1.0 branch of jboss-remote-naming
WFLY-2198 is for the master branch of jboss-remote-naming