delete socket if in use