Explicitly close file handle in Solr worker