Restore comment and add cleanup logic for processingQueue