pentaho/pentaho-kettle — pull request #324 by pentaho-skarmali (2014-02-25 22:45:40+00:00)
Title: log4j: ERROR Attempting to append to closed appender PENTAHOFILE when using PRPT that contains a KTR as datasource 

1) Detect if Kettle is running embedded or not. We are embedded if we are running in context of BA Server
2) If we are embedded then don't close log4j appenders as this causes log4j errors as there could be log4j logging from other log producers.