closing socket in dispose()