try harder to shut down python so we don't kernel panic on osx