Finetune some logging
Fix or suppress stacktrace warnings
Undo changes when printStackTrace is send to listener
Suppress warning when printStackTrace in test cases
Suppress some more printStackTrace warnings
Fix some more critical error messages from Sonar