cleanup application controller