There are many reason..............
From emulator itself............
From plugin you using..............
In first case I using ZSNES it always freezing when I exit but when I upgrade newer version release I have problem no more..............
In second case I using AdriPSX when I using Segu Direct Pad Pro,it always freezing when I exit when I change to another plugin it have no more this problem...................