Handle multiple close followed by reconnect