How do I properly shut down bitcoind on Windows? I get error: EnvShutdown exception: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)
Send the RPC Stop command:

cd "C:\Program Files (x86)\Bitcoin\daemon"
bitcoind stop


Output

ThreadRPCServer method=stop
Flush(false)
blkindex.dat refcount=0
blkindex.dat checkpoint
ThreadSocketHandler exited
blkindex.dat detach
ThreadMessageHandler exited
connection timeout
ThreadOpenConnections exited
ThreadDumpAddress exited

blkindex.dat closed
DBFlush(false) ended          219780ms
StopNode()
Flushed 12513 addresses to peers.dat  280ms
Flush(true)
DBFlush(true) ended               0ms
Bitcoin exited