364921 improved close of SSL to avoid FINWAITs