Add Exit() functions

Exists with zero or non-zero status depending on the received error.