Return valid exit codes

Resolves: #19