added try-except to inhibit collector from crashing if server is not available