Close upload dialog when done