Fixed units numbers and correctly close file in describe_dsn