[PD-dev] Pd hangs on exit on macOS