If Android kills GnollHack, when you have temporarily switched to another app, you can do the following:
How to Stop Android From Killing Background Apps
Battery life is very important, but some Android phones try a little too hard to stretch it out. You may notice apps running poorly or missing notifications from being killed in the background. We’ll show you how to stop that.