[PD] graph causes crash when exiting