private void Close() { try { provider.Close(); } catch (Exception ex) { logger.Error(ex.Message); } }