Do not terminate the slave twice.