JCR-2298: Collect the call stack on connection close only on debug mode