File wasn't properly closed