correcting PPSSPP (PSP) exit function