Endpoint cleanup.