Signal handlers call os._exit

sys.exit can fail with threads