remove unused socket reference