run-command: use BUG() to report bugs, not die()