Version 2.0 of MongoDB sometimes doesn't shut down properly when running as a service on a NET STOP or system shutdown or reboot. It's a timing issue, where shutting down correctly depends on the order or two notifications, so it works fine on some machines and not on others. This is fixed in 2.1.0.
Kevin's advice to use db.shutdownServer() will work every time in all versions.
Disconnecting from the server will not shut it down; the server is designed for multiple clients, so a disconnect of a client doesn't imply that the server should exit. How are you calling "Shutdown()"? Is this making the driver issue a shutdownServer() call? That may be a separate issue. Do you want to post sample code that tries to shut down the server and fails to do it?
On Tuesday, May 8, 2012 5:49:25 PM UTC-4, Jay Soma wrote: