Issue refs #1656: add broken connection and error handling for redis and postgresql