update to latest purity with closeApp arg