1) to be sure: u didnt lock it in task manager (the app then gets a blue lock icon). if you accidently did swipe the app down, unlock and it will be closed as usual.
2) check in settings --> battery --> manage app battery usage --> should be set to advanced.
mby someone else knows more advice.