Error: File closes too early.