Added int type for --exitcode option

Added int type for --exitcode option because sys.exit() function requires an argument of type int to return in as exit code, otherwise it just returns object's string representation with error code 1: http://docs.python.org/2.6/library/sys.html#sys.exit