I find that it
usually sticks around long enough. But I agree that it should stay open at least until I interact with something else.
On the bright side it just collapses into a "key" icon in the URL bar that you can click to open it back up and save the password.