Merge pull request #16 from andrewjpage/master

exit instead of die when looking up references