not crash stream on exit