HH-40547 add more logging in case of exceptions and 5xx return codes