useless machine
A machine whose only function is to turn itself off.
The best-known useless machines are those inspired by Marvin Minsky's design, in which the device's sole function is to switch itself off by operating its own "off" switch. Such machines were popularised commercially in the 1960s, sold as an amusing engineering hack, or as a joke.