Idk if anyone said this yet but it is most certainly a ram issue. Android will close apps that are using too much ram since the OS itself needs it more than the apps do.
512 mb of ram was fine back when android first started but in 2016, its basically one of those, good luck with that m8 sorta deal.
According to FF's own twitter page, you need at least 1GB for it to run smoothly. I'd say 768 is the bare minimum but 512 is a no go. Android itself is a heavy OS hence why I'd never recommend a phone under 2gb of ram in 2016 even if people have to pay a bit more. The ideal entry level android phone would be a Snapdragon + 2gb of ram at a minimum but thats also above $100
The phones I always recommend for entry level buyers in 2016 are:
4Gb of ram, 64 Gb of Internal Storage, Snapdragon 430 for $179 no contract/unlocked
https://www.amazon.com/BLU-LIFE-ONE-X2-Smartphone/dp/B01M13TSHR/ref=sr_1_1?ie=UTF8&qid=1482789268&sr=8-1&keywords=Blue+Life+One+x2
or
2gb of ram, 16gb of internal storage, Snapdragon 430 for $149 no contract/unlocked
https://www.amazon.com/BLU-LIFE-ONE-X2-Smartphone/dp/B01LZHFSBC/ref=sr_1_2?ie=UTF8&qid=1482789268&sr=8-2&keywords=Blue+Life+One+x2
But they aren't exactly waterproof and etc tho