func onStop(u *uistate.UIState) { u.Eng.Release() fps.Release() u.Images.Release() sound.ClosePlayers(u) u.Done = true u.Shutdown() }