Close socket on service destroy