Need to emit error when a callback fail, fixes #6