DuckPAN: add `exit_with_msg` method.

Toward better logging, here's a simple routine to print a supplied
message and then exit with the supplied code.