Fix reconnect attempts not cleaned up properly