Prevent compilers warnings due to use of try-with-resources for a use
case where we don't need access to the auto-closable.