Close buffers BEFORE file channel is closed to make windows happy.