anchor.diff:  %%                   {stop, Reason, NewState}
   %% @end
   %%--------------------------------------------------------------------
  +
  +stopped(tick, State = #state{uuid = UUID, type = jail}) ->
  +    case check_jail(UUID) of
  +        running ->
  +            ConsolePort = open_jail(State),
  +            receive
  +                {'EXIT', ConsolePort, _PosixCode} ->
  +                    tick(),
  +                    {next_state, stopped, State};
  +                {_C, {exit_status, _PosixCode}} ->
  +                    tick(),
  +                    {next_state, stopped, State}
  +            after
  +                500 ->
  +                    lager:info("[zlogin:~s] connected.", [UUID]),
  +                    State1  = State#state{console = ConsolePort},
  +                    {next_state, connected, State1}
  +            end;
  +        _ ->
  +            tick(),
  +            {next_state, stopped, State}
  +    end;
  +
   stopped(tick, State = #state{uuid = UUID}) ->
       case check_state(UUID) of
           running ->
  
positive.code:     process_flag(trap_exit, true),
      {ok, stopped, #state{uuid = UUID, type = docker}};
  
  init([UUID, Type]) ->
      tick(),
      check(),
  
negative.code: 
  runpty() ->
      code:priv_dir(fifo_zlogin) ++ "/runpty".
  
  incinerate(Port) ->
      case erlang:port_info(Port, os_pid) of
  