title: An invalid handle was specified
body: <p>I've asked a related question before, but I have more information and a new question now.</p>
  
  <p>I'm trying to use TAPI3 in my own program on Win8 64bit, however whenever tapi.shutdown() is called or the item is disposed, all other services inside the same svchost.exe that it is running in also ends. </p>
  
  <p>I attached a debugger to the tapisrv.dll file to see what was going on. When this function is called, I get the following exception:</p>
  
  <blockquote>
    <p>First-chance exception at 0x00007FFF4F8D311A (ntdll.dll) in svchost.exe: >0xC0000008: An invalid handle was specified.</p>
    
    <p>If there is a handler for this exception, the program may be safely continued.</p>
  </blockquote>
  
  <p>If I click continue, I get the next exception: </p>
  
  <blockquote>
    <p>Unhandled exception at 0x00007FFF4F8D311A (ntdll.dll) in svchost.exe: >0xC0000008: An invalid handle was specified.</p>
    
    <p>If there is a handler for this exception, the program may be safely continued.</p>
  </blockquote>
  
  <p>Now, outside of debug mode I think that this exception isn't being ignored and that's what's causing the issue, as when I continue through in debug mode nothing ends and everything unloads correctly.</p>
  
  <p>So here's my question: This exception happens outside of my code. Is there any way I can catch and handle this inside my code? </p>