Set buffer of buffered IO classes to None in close().

This helps to reclaim the memory used by the buffer earlier.
1 job for topic/default/bufferedio-release-buffer in 13 minutes and 26 seconds (queued for 1 second)