make file closing more robust
1 file changed