fixes for startup/shutdown of pengine. added logger to Pegine