Bugfix: connection management

The code to remove old connections was buggy
Bugfix: Function MoveShares:  no notification if validation error occurs