debug: add halt() and panic() routines