Save SRAM to file when emulator exits