Fixed memory leak of dispose on stream close.
5.6.2