Avoid static local of a singleton.  This crashed writer unit tests.

Change-Id: I7c5f2d372676cdb317a8dad636bf1aab7dd5db37
Detach all DocBasicItem objects upon process termination.

To prevent rogue DocBasicItem objects (which are global objects) from
attempting to stop listening after the main app is dead.

Change-Id: I68a667137ca4e0eff18278f4d2d5dd67466eaf34