Does a refused sign-in end the session my browser has?
No. A sign-in that is refused (wrong password, unknown email, too many attempts) ends nothing. The browser keeps the session it had. The same holds for a sign-up with an address that already has an account, which signs nobody in.