close files explicitly.