Add reconnect loop

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>