[RJA-2342][fix] - Race condition when checking agent status]
[RJA-2342][fix] - Imports cleaned
Merge pull request #980 from rsvato/bug

[RJA-2342][fix] - Race condition when checking agent status