System.stop(1) does not return code to shell

Yes, seems to fail in the erlang escript too:

~/Private/Code/Tests/erlang_escript_test$ cat escript_test
#!/usr/local/bin/escript
%% -*- erlang -*-
%%! -smp enable -sname factorial -mnesia debug verbose
main(_) ->
    io:format("simple example\n"),
    init:stop(1).
~/Private/Code/Tests/erlang_escript_test$ ./escript_test
simple example
~/Private/Code/Tests/erlang_escript_test$ echo $?
0