If you get factory and a mine after, you softlock yourself
You can tap on the Mass Extractor (Factory) and press the Turn Off button and then it will stop producing but it will also stop consuming your resources.
Please let me know if this doesn't resolve your issue and thanks for playing.