adjusted order in which PIDs are killed; add *.pem in .gitignore; enable output from agent