data stream stop function