Add shutdown method to net.socket