GitHub #86: Clean up connection-mode handling for deleted connections and endpoints