anchor.diff:              State = #state{console = _C}) ->
       lager:warning("[console:~s] Exited with status ~p but vm in stopped.",
                     [State#state.uuid, PosixCode]),
  +    check(),
       {next_state, stopped, State#state{console = undefined}};
   
   handle_info({'EXIT', _C, PosixCode}, connected,
               State = #state{console = _C}) ->
       lager:warning("[console:~s] Exited with status ~p but vm in stopped.",
                     [State#state.uuid, PosixCode]),
  +    check(),
       {next_state, stopped, State#state{console = undefined}};
   
   handle_info({C, {data, Data}}, connected,
  
positive.code: %% @end
  %%--------------------------------------------------------------------
  init([UUID, kvm]) ->
      {ok, kvm, #state{uuid = UUID}, 0};
  
  init([UUID, docker]) ->
      lager:info("[zlogin:~s] Starting docker zlogin.", [UUID]),
      tick(),
      process_flag(trap_exit, true),
      {ok, stopped, #state{uuid = UUID, type = docker}};
  
  init([UUID, Type]) ->
      tick(),
      process_flag(trap_exit, true),
      {ok, stopped, #state{uuid = UUID, type = Type}}.
  
  
negative.code: %% @end
  %%--------------------------------------------------------------------
  stopped(tick, State = #state{uuid = UUID}) ->
      ConsolePort = open_zlogin(State),
      receive
          {'EXIT', ConsolePort, _PosixCode} ->
              tick(),
              {next_state, stopped, State}
      after
          200 ->
  