cfunction (os/exit &opt x) Exit from janet with an exit code equal to x. If x is not an integer, the exit with status equal the hash of x.
$ janet -e '(os/exit 42)' ; echo $? 42