Fix a freeze when removing bundle files from queue