holoirc: cleanup code and change the way disconnections are performed