Shutdown the socket on crash and restart.