Fix Disposable feature.

Scoped dependencies were removed before disposal.