Cleanup SocketFactory