Safer ctrl-c handling.
Safer ctrl-c handling.

This prevents half-finished changes to be written to Wikidata.
Instead, this finished the current change and then exits.

Change-Id: Iac27f7f7ddc7578368fa149e4be136bb0f9b12ef

jayvdb/pywikibot-core,wikimedia/pywikibot-core,happy5214/pywikibot-core,happy5214/pywikibot-core,hasteur/g13bot_tools_new,hasteur/g13bot_tools_new,jayvdb/pywikibot-core,Darkdadaah/pywikibot-core,h4ck3rm1k3/pywikibot-core,TridevGuha/pywikibot-core,magul/pywikibot-core,icyflame/batman,npdoty/pywikibot,hasteur/g13bot_tools_new,PersianWikipedia/pywikibot-core,darthbhyrava/pywikibot-local,smalyshev/pywikibot-core,Darkdadaah/pywikibot-core,trishnaguha/pywikibot-core,magul/pywikibot-core,h4ck3rm1k3/pywikibot-core,npdoty/pywikibot,wikimedia/pywikibot-core