Provide more information in client exit code

Client now returns more information in exit code:
0 : All pass
-1 : Test failure
1 : Script or server error