Close ext fs after opening for determining type

The prior code was unreachable due to the returns above it.