Socket connections as context managers.