Improves error handling in case PZH is not reachable.

Stability improvment.

Jira issue: WP-896