Result2pb.py:  call sys.exit() with 1 to indicate the error #4783  (#4784)
Result2pb.py:  call sys.exit() with 1 to indicate the error #4783  (#4784)

* Always separate the exit value upon success or failure since user might write their script to check the execution result.
* s/open/with/g, simplify the logic

startcode/apollo,startcode/apollo,startcode/apollo,startcode/apollo,startcode/apollo,startcode/apollo