title: Visual Studio is keeping a handle open after stopping the debugger
body: <p>I keep getting the following error in MS Visual Stdio:</p>
  
  <blockquote>
    <p>Unable to copy file "obj\Debug[Program].exe" to "bin\Debug[Program].exe". The process cannot access the file 'bin\Debug[Program].exe' because it is being used by another process.</p>
  </blockquote>
  
  <p>This happens randomly after I close and/or stop the debugger. The program is closed, but VS keeps a couple handles open to the program.</p>
  
  <p><img src="https://i.stack.imgur.com/XiRUB.png" alt="Handles opened"></p>
  
  <p>The only way I've found to be able to re-debug is to close Visual Studio, and reopen it, which is very annoying.</p>
  
  <p>Any idea why this is happening, and how I can run the debugger again without first closing it?</p>
  
  <p>This has happened in 2013 Ultimate, and 2015 Ultimate.</p>
  
  <p>Thanks.</p>