added extra logging for unknown errors