MB-24293: Retry atmost 10 times if directory removal fails