fix a bug where the client blocks the finder(or explorer in windows)

...dropping a file
We need to make the dialog destroy itself when the task finishes.