Added Codenarc checking to gradle build
Minor Codenarc suggested refactors
Adding thread to logging + degrading event listener to trace level
Close processor resources on exit
Rebase