Merge "Add comments to explain why mayCloseSockets is called twice."