application complete pre-cleanup