item_queue.py: Make failure sentinel file more robust.