update.php: use _debug() for pre-death error messages
add missing exit(1) call

I meant to include this in 993e7698a6a71db394d0ba56eaea66dc70cbd2d0
update.php: remove extra newlines in _debug() calls

_debug() already adds a newline
update.php: consistently use 'echo' for output