avoid unbound local when unloading a broken service