Adding the dump and die function.

Signed-off-by: James Kirby <jedkirby@me.com>