 
   def init(metrics) do
     {:ok, %{:commands => %{}, :metrics => metrics}}
+  end
+
+  def handle_call(:stop, _from, state) do
+    {:stop, :normal, :ok, state}
   end
 
   def handle_call({:register, cmd_name, fun, thresholds}, _from, state) do


  def handle_cast({:track, :error, cmd_name, delta}, state) do
    {:noreply, mark_call_error(state, cmd_name, delta)}
  end

  def handle_call(:stop, _from, state) do
    {:stop, :normal, :ok, state}
  end

  def stop do

    GenServer.call(__MODULE__, {:run, cmd_name})
  end

  defp get_command_status(_cmd) do
    :ok
  end

