My apps close when I try to minimise them. How can I fix it?
As you enabled the Developers options, you could've enabled the Do not keep activities mistakenly. Check it and disable it. 

Check the screenshot, options may differ since the image is from Samsung Galaxy.