calling shutdown before closing socket