How to solve the artificial intelligence "stop button" problem

It’s a bunch of trivial cases and ad hoc scenarios.

Lots of straw men arguments based on the premise that humans will be smart enough to make AI but dumb enough to immediately put it in change of potentially dangerous things without thinking how to program it.