test stream.stop on scope destruction