Fixes

End session when closing the app