Rename completeBuilder to continuationBuilder.
Extend continuationBuilder to support onError callback.