Shutdown socket patch