Updated socket closures