Fixed kill socket script