Cancel the reconnect timer when appropriate.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>