KRACOEUS-7847 and KRACOEUS-7282

Please review this PR, some more work pending, don't merge it just yet.
make sure you log the exception properly like: LOGGER.error(ex.getStackTrace(), ex);  This way all the caused by exceptions aren't lost