End the stream properly this time.