cleaned up TerminateCall