Terminate instance after build.