AI misconduct defence