add timeout

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