src: simplify exit code accesses
This simplifies getting the exit code which is set through process.exitCode
by removing
manually reading the JS property from the native side.
Addresses this TODO:
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com