Add exiplicit exit codes

Exit codes are required after the running refactoring