Added sleep between reconnect attempts.