Shutdown SSL connection before releasing its memory.

Signed-off-by: Thiago Farina <tfarina@chromium.org>