only fire connection-closed event once