Fix for https://rt.cpan.org/Public/Bug/Display.html?id=45812

There isn't a fh to close when proto is external so don't try.