if we don't set this reference, there's no way to clean shutdown persistent connections