Wrong password entered on the command line currently fails quite ungracefully. Could catch if browser complains about wrong password and try again.