Fix CAP END not being sent after reconnect