Change order of termination