HRCPP-146 Improve trace logging
HRCPP-150 Always catch exceptions as const