close statement in MimeType detection is executed [#7069]

close statement was never executed due to it being after a return
statement.
Merge pull request #7071 from jcfischer/master

close statement in MimeType detection is executed [#7069]