Fixed race condition when disposing of Stores