Close upload window on upload