Fix Issue #339: exceptions thrown in compositionComplete callbacks prevent other callbacks to run.

Also added error handling for some other callbacks.