Make repository and services disposable.