Tighten up the identity and auth interaction

Handle errors, ready notification, cancellations and cleanups.