   """
   @spec stop(pid, reason :: :stop | :error) :: :ok
   def stop(observer, :stop) do
-    :ok = GenServer.stop(observer, :normal)
+    :ok = GenServer.stop(observer)
   end
   def stop(observer, :error) do
     :ok = GenServer.stop(observer, :error)

  Starts the oberver process
  """
  def start_link(name \\ "anonymous observer")  do
    GenServer.start_link(__MODULE__, [name])
  end


          {:error, _reason, new_s} -> EventCenter.sync_notify{:observer, :failed_observer, name}
              Observer.stop(parent_pid, :error)
          {:stop, new_s } -> EventCenter.sync_notify{:observer, :stopped_observer, name}
              Observer.stop(parent_pid, :stop)
        end
      end)
    {:noreply, %__MODULE__{s | observer_pid: pid}}
