Factor out failure detection and inet socket address deserializer.
Version to 0.0.2