Fixing end session for android