Trigger the error event before restart the poller