Pass dialog cancel events to the listener

When not using single sign-on, it is important that the listener is able to receive cancel events from the dialog. Otherwise when the user presses "back" in the login screen, the listener will never know about it and therefore not be able to react to these changes.