Agent's connection with Application Server fails