Terminate an instance