- Adding deinitialization of session when activity closed to preserve memory.