Kernel now closes sessions when activity is switched