Duplicate of how to stop dll. Thread closed.