Catching MonitoringPublisherException instead of generic Exception.

Small improvement to be more specific on the probable exception that acting upon all the exceptions.