Finish the PTS connection initialization code (and deinitialize, too).