static void CloseMediaInternal (IntPtr instance) { try { FromIntPtr (instance).CloseMediaInternal (); } catch (Exception ex) { try { Console.WriteLine ("Unhandled exception in MediaStreamSource.CloseMediaInternal: {0}", ex); } catch { } } }