An attempt was made to call [stream.write()][] after stream.end() has been called.