If closet is closed, perform segue immediately. If open, first close it, then perform segue.