Poller should check if a socket is open before poll it.
Add onError handler on message.