fixed problem where a connection could get wiped from the connection map during shutdown of a previous stream with the same name