Closed
Description
It's possible for UploadNow to execute while the system is half-shutdown in FlushAndTeardown. In Edge this manifested as a crash when trying to acquire the (now destroyed) lock for offline storage, which had already been shut down.
UploadNow does check that the log manager exists, but does not guarantee that the log manager is valid throughout the lifetime of the call. @maxgolov was able to repro a similar crash by adding an artificial pause is FushAndTeardown