[SP-631] Don't close console and file log4j appenders prematurely if we are running embedded
Merge pull request #345 from pentaho-skarmali/SP-631_PDI-9812_error_append_log4j_prpt_master

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