fix bug to safely quit Looper
fix bug:MessageQueue is not quit for ProgressWindow