Be synchronous for deleting socket