Reduce some complex runOnUiLoop.
Finished logout process.