Lazy load socket connection, throw exception on network failure