Correct logging of exceptions (https://issues.jboss.org/browse/JGRP-1757)