Expose socket via closures