Shutdown added to stop the socket from revieving after its closed