Added extra safe check for authentication when cleaning queue to avoid Forbidden results