[fix] Reset the reconnection when we go offline