close filehandle to avoid messy parsing