listen for post-connect error, add test