Don't leak file descriptors.
Added comment.
Load from actual blkfile for testing.