Add `onclose` to `Account.loginWithThirdParty()`