Fix crash when re-launching activity on Android, closes #4

Found the issue after a lot of experimenting. Can you build new dist's for iOS and Android after merging?