Try fix problem with detection of crashed agent. references #2561