sleep only on success