Adding a sleep to fix race condition

Before, the check was too fast before the
purge really happened