Ensure static `SBEnv` instance is destroyed when exceptions are triggered
Ensure static `SBEnv` instance is destroyed when exceptions are triggered

Since the instance is declared as `static` it will otherwise be destroyed as part
of the global destructor invocation cycle at exit. Any transitive dependencies
that are also static may or may not be destroyed prior to the `SBEnv` instance
itself, causing undefined behavior.

vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa