make wikibot_samples.ui usable as a module
Add UserLoginAborted and slightly better exception handling