cleanup proxy ssl handling