Improve Stream_IO, optimize Read and fix Reset/Set_Mode for any exceptions