      }, 0}
   end
 
-  # def terminate(_, %{uart: uart}) do
-  def terminate(_, _) do
-    # UartDefaultAdapter.stop(uart)
-    :ok
+  def terminate(_, %{uart: uart}) do
+    UartDefaultAdapter.stop(uart)
   end
 
   def handle_info(:timeout, %{open: false} = state) do

    end
  end

  def open(_uart_pid, _device_path, _opts) do
    # UartDefaultAdapter.open(uart_pid, device_path, opts)
    :ok
  end
end

  This is the mechanism that official Farmbot's communicate with
  official Farmbot-Arduino-Firmware's over.
  """
  alias FarmbotFirmware.{GCODE, UartDefaultAdapter}
  use GenServer
  require Logger

