ALII-4573 and ALII-4519 Improvements.

Signed-off-by: Mike Stitt <mikes@spindance.com>
Merge pull request #3 from spindance/bug/4573and4519

ALII-4573 and ALII-4519 Improvements.
ALII-4689 - Only close lwip socket (lwip_close) and free CYASSL object (CyaSSL_free) once.

Signed-off-by: Mike Stitt <mikes@spindance.com>
Merge pull request #4 from spindance/bug/4689

ALII-4689 - Only close lwip socket (lwip_close) and free CYASSL object (...
Merge branch 'master' into feature/4273