Guard against TypeError in atexit handlers
2 files changed