8147505: BaseStream.onClose() should not allow registering new handlers after stream is consumed

Reviewed-by: psandoz
2 files changed