Added term_.py and the hcs_.terminate_* subroutines.