-bug: deregistration in poll iteration