Adding exit codes

Ignoring so-called experts on the Internet and listening til havardpe
instead.