execute PSP cleanup just before the end of exit