Fixed many issues with undisposed stream readers, writers, and files