add socket cleanup to phantom-node bridge