connectionFinished hook