Implement proper termination.