Better exception handling vis-a-vis the Synapse java client.