Close conditional properly