public void End(IntPtr ptr) { Exception e = null; var r = Result.ToInt32(); if (r < 0) { e = Ensure.Map(r, (string.IsNullOrEmpty(Path) ? null : Path)); } if (Callback != null) { Callback(e); } Dispose(); }