undo connection alomst finish