We should always call fclose on a closeFile call, we only need to check ref coutn if we're trying to destroy it