ayende/ravendb — pull request #1349 by maximburyak (2014-08-29 15:10:18+00:00)
Title: fixed problem with disposing TransactionalStorage not allowing database ...

...to dispose completely, if unexpected error accures in esent.

change the way we treat shutting down databases in HttpServer.cs. instead of removing database from the ResourcesStoresCache, we first "plant" a special exception throwing task at the begining of the dispose process and remove the databace from the cache only when dispose process is done