Merge branch 'bug_close_files' into 'master'

BUG: close file handles

See merge request fsl/fslpy!291
5 jobs for master in 13 minutes and 45 seconds (queued for 3 seconds)