Add protection against transaction gone away