title: How to unlock COM port
body: <p>I've a application that must work after another application. This second application has a bug that causes COM ports not to be closed in specific circumstances.</p>
  
  <p>I would like to close all COM ports programmatically in my application to ensure, that there will be no bugs about close ports reported. Is it possible if I do not own objects that opened COM ports?</p>
  
  <p>I need a solution on .NET Framework, C# .</p>