Army close to achieving goals on terror: COAS