I think it should be ok - the return code for the process is likely to be more useful in this scenario - this code should just stop processing the stream.