Record connections and disconnections