handled properly and password dialog comes up on pressing ok button, in failure cases. svn path=/trunk/; revision=28439