Protect the multicast join process in Java

Joining a non-IPV4/v6 interface raises an IOException.