     receiver_queue = MapSet.delete(state.receiver_queue, client)
     state = %{state | receiver_queue: receiver_queue}
     maybe_activate_sock(state)
-    { :noreply, state}
   end
 
   def handle_info(_msg, state) do


  defp maybe_activate_sock(state) do
    if Enum.empty?(state.receiver_queue) do
      :ok = :inet.setopts(state.sock, [active: :once])
    end
  end

  defp maybe_deactivate_sock(state) do
    if Enum.empty?(state.receiver_queue) do
      :ok = :inet.setopts(state.sock, [active: false])
    end
  end


  end

  def handle_call({ :execute, command, args, opts }, from, s) do
    with :ok <- maybe_deactivate_sock(s) do
      send_and_receive(s, from, command, args, opts)
    end
  end

  def handle_call({ :execute_quiet, _commands }, _from, %State{ sock: nil } = s) do
