Bugfixing for the exit_code

exit_code was not a number. for example
pid 31327 exit 0
now its just 0