DXGI doesn't like to restart too fast, com exceptions are logged and the duplication device fails to create with an E_ACCESS_DENIED error. Adding a 200ms sleep between teardown and re-init resolves this issue.