added a check to count psyradio failed connections and stop broadcasting