Add all_listings_for method.
Raise an error if no host is found.
Try 5 times before aborting rpc call.
Only close the socket if it was created successfully.