Fixed Error On Windows

We were trying to delete a file when we still had it open. I'll have to assume linux was ok was this because the stream was maybe closed by the garbage collector??? I really don't know how linux wasn't failing too!