Fix to options.error callback wrapping.
Merge pull request #31 from mariusk/master

option.error callback wrapping bugfix.