Added a delay before reconnect