Adds some socket code to the PlanExecutor