Modified odr_destroy so that file is not closed when file is 0.