add sleep before reconnecting