add terminate
fix
terminate and deloey finish