Able to work as an iOS controller

Tear down GL and AL when terminating the game.