Changed error message when stream is closed.