mdstat: close fh when no longer needed