Added a timelimit to the reconnections.