[Git] Prevent Dialog leak in case of exception in Stash Manager.