Fixes SSL AsyncSocket close problem. Ref #1769. Ref #1759.