After closing the new created firefox window (FirefoxDriver) a folder named "anonymousXXXXXXX.webdriver-profile" remains in the temp directory (AppData\Local\Temp). When using the Dispose method or the using statement the folder for the new created firefox profile in the temp directory is removed but also the temporary firefox instance closes instantly.
IWebDriver browser = new FirefoxDriver();
browser.Url = "https://www.google.com/";
browser.Navigate();
browser.Dispose();
How do I call the dispose method after exiting the firefox instance?