SSL stuff cleanup