windows: Support error event