Close file handle when user wants to stop reading

The documentation states:

    If the callback returns false, reading will stop and the file will be closed.