workaround for atexit bug

http://bugs.python.org/issue15881#msg170215
handle user denial during authorization