connected vs registered cleanup