Fix bug when dropping an old connection in favour of a new one from the