Are you using a frontend? If so, check if running games from command line triggers the problem. Some frontends (notably the one with the superiority prefix) like killing the emulator process by hooking the escape key. So it may happen the emulator doesn't have a chance to release system resources cleanly.