How can you handle cleanup operations when working with streams?
You can listen for the end event on a readable stream or the finish event on a writable stream to perform cleanup operations, such as closing files or network connections when the stream has finished processing.