refactor the way the application exits and exceptions are caught
fix copyright
fix copyright on one more file
fix code review comments
address Andrei A's comment
fix headless issue properly
fix copyright
fix NullPointerException in ktest
Merge pull request #395 from dwightguth/systemexit

refactor the way the application exits and exceptions are caught