fix premature stream close