[DF-4152] Fixed thread kiling for Android.