Closing upload dialog on successful upload.