App.js does not terminate anymore