Changed event from error to err. The error event is reserved may be reserved in node.