Detect if collector is down. Fixes #4345
Merge pull request #4359 from juztas/exeError

Detect if collector is down. Fixes #4345