Protocol callbacks on changes to connection state