closing app when ant find templates