notification/mqtt: ensure network communication and check error