finish connection