close filehandles straight after parse, without setting an error