Fixed a bug where a factory died while upgrading
Merge pull request #10 from ashdnazg/queue_upgrade

Fixed a bug where a factory died while upgrading