added check for errors from headless

headless currently does not catch errors, or send callbacks errors, but if kesla/node-headless#10 get's merged, or any other check for it's major dependency get's put into place, this error arg might be useful for OSX users who have not installed Xvfb.