stop streaming before clearing all the streaming registers in streamCleanup