Close stream flag