cross validator closing sample stream