removing some log msgs and adding check for >2 connections and handling disconnect