Implement exit codes != 0

For more details: https://groups.google.com/forum/#!topic/nodejs/zF7GEoPccqw