add explicit close() to CAutoFile and CBufferedFile