Fix #1106 - plugins using ssl throwing exceptions