Fixed leaked window while showing ProgressDialog

Fixed issue #4