[AMENDED topic] Detecting an Emergency Stop on Arduino

Maybe put it to sleep? Of course, this would shut down any display peripherals, possibly making it hard to diagnose the cause.

An alternative might be to call a function (often) which monitors the E-stop input. When it's activated the code just loops there, think 'while()', until the E-stop is removed.

YMMV