why does my blackberry leap reboot by itself?

this has happened a bunch of times but recently it reboots because of sudden closing of apps by themselves. if an app is open for quite some time, it suddenly closes and then the phone goes off as well. restarts again. what would be the cause of this?