bugfix: local error can interrupt link at any time