processOutcome

Processes the outcome of a connection attempt and returns the action the caller should take.