add code to handle cancel / exit events in the oauth browser flow