fix(poller): better handling of messages (including retries) if DB connection drops

fixes #40