Fixed crash and locking issues while unrouting connections via stroke