Form GitRun: close dialog on ESC key pressed

Close it only if the git operation completed (when the button text
changes to "Done")