anchor.diff:  handle_info(running_timeout, running,
           #state{job = Job, running_timeout = RunningTimeout} = State) ->
       lager:info("Timeout occurred while running job ~p after ~p milliseconds", [Job#pushy_job.id, RunningTimeout]),
  -    finish_job(timed_out, State);
  +    State2 = send_matching_to_rehab(ready, aborted, State),
  +    State3 = send_matching_to_rehab(running, aborted, State2),
  +    finish_job(timed_out, State3);
   handle_info(Info, StateName, State) ->
       lager:error("Unknown message handle_info(~p)", [Info]),
       {next_state, StateName, State}.
  
positive.code:     pushy_node_state:rehab(NodeRef),
      State.
  
  finish_all_nodes(#state{job = Job, job_nodes = JobNodes} = State) ->
      JobNodes2 = dict:map(fun(_, OldNodeState) ->
          JobStatus = Job#pushy_job.status,
          OldNodeStatus = OldNodeState#pushy_job_node.status,
          NewPushyJobNode = case {JobStatus, terminalize(OldNodeStatus)} of
              {_, new}         -> OldNodeState#pushy_job_node{status = unavailable};
              {voting, ready}  -> OldNodeState#pushy_job_node{status = was_ready};
              {running, ready} -> OldNodeState#pushy_job_node{status = aborted};
              {_, running}     -> OldNodeState#pushy_job_node{status = aborted};
              {_, terminal}    -> OldNodeState
          end,
          pushy_sql:update_job_node(NewPushyJobNode),
          pushy_node_state:rehab({NewPushyJobNode#pushy_job_node.org_id,
                                  NewPushyJobNode#pushy_job_node.node_name}),
          NewPushyJobNode
      end, JobNodes),
      State#state{job_nodes = JobNodes2}.
  
  
negative.code: 
  -spec handle_event(any(), job_status(), #state{}) ->
          {'next_state', job_status(), #state{}}.
  handle_event(Event, StateName, State) ->
      lager:error("Unknown message handle_event(~p)", [Event]),
      {next_state, StateName, State}.
  
  -spec handle_sync_event(any(), any(), job_status(), #state{}) ->
          {'reply', 'ok', job_status(), #state{}}.
  