Adding fixes for ESBJAVA-3368

Fixing the issue "Error logs during connection shutdown does not have correlation between exception and the connection information"