Automatically retry queries on database connections that have 'gone away'.