Added Socket#close and corresponding finalizer