Minor modification to controller termination.