Yes, I also have some problems with this.
However, when I use your example, my app does return (my android goes back to the menu of apps), but if I try to start it again, none of the main function is executed, I get a black screen with the title of the window at the top.
Should we open an issue on github ?