_terminate is not private, so rename it to terminate