To exit the screen when the back button is pressed on the main window, add exitOnClose='true'
to the <Window>
element:
<Window class="container" exitOnClose="true">
FYI, this behavior is a regression from 3.1.x (https://jira.appcelerator.org/browse/TIMOB-16330).