Handle connectivity issues in Perfmon datasource.

Fixes ZEN-9261.