Fixes segfault on close by removing Py_Finalize()