Minor ml.ml fix

The original implementation forgot to close the file description.