[PDI-9812] - log4j: ERROR Attempting to append to closed appender PENTAHOFILE when using PRPT that contains a KTR as datasource 

Cherry-pick from https://github.com/pentaho/pentaho-kettle/pull/324