[fix] wrap the retry in a setTimeout