dundee: Handle Profile connect and disconnect