Add terminate program