Throw exception if agentStatus returns value other than 0,1 or 3