Fixed retry_sleep
Added check for deleted link