Fix the Python interpreter SEGFAULT'ing on exit if a new
UI process was spawned.