public void Close()
 {
     try
     {
         int  hWnd = application.Application.Hwnd;
         uint processId;
         RobotWin32.GetWindowThreadProcessId((IntPtr)hWnd, out processId);
         Process proc = Process.GetProcessById((int)processId);
         proc.Kill();
     }
     catch (Exception ex)
     {
         throw new ApplicationException($"Error occurred while closing current Excel Instance. Message: {ex.Message}");
     }
 }