finalize socket handles by explicitly performing GC