close snippet