Clean up greenified socket and SSL errors