save the return value of command in repl exit code

this means the return value of the last command run is wrfsh's exit code