handle registry is removed