remove socket reference