pause emulation and OpenGL when backgrounding app, fixes crash