support negative exit code.

for windows bat exit code fix #423

support negative exit code.
and remove ERROR_CODE that is not need.