ANDROID: fix clean shutdown