How to Fix “Outlook.pst Was Not Cleanly Closed by the Last Program”?

  Ashwani Tiwari
Written By Ashwani Tiwari
Anuraag Singh
Approved By Anuraag Singh
Modified On October 9th, 2025
Reading Time 7 Min Read

Outlook is the most popular desktop-based email client used by people these days. It has file extension called PST that is used to save major data like contacts, calendar, emails etc. But using Outlook there are plenty of issues people face at one point or the other. One such issue is Microsoft Outlook 2013, 2016 won’t open because Outlook.pst was not cleanly closed by the last program that used it.

There are many reasons for this error to occur, one of them is large PST file size. This message does not access Outlook but it definitely increases the accessibility time of Outlook. In this article we will discuss the ways to fix the Outlook data file .pst was not cleanly closed by the last program that used it.

User Query – Outlook PST File Was Not Cleanly Closed

“Hello! I have been using Microsoft Outlook for quite some time and recently I have upgraded my computer to Windows 10 and Office 2010 to 2016. But when I am starting my Outlook 2016 it is showing error message Cannot start Microsoft Outlook. What I understood was Outlook 2016 PST was not cleanly closed by the last program. Could someone tell me how to fix this problem as I have many important official files saved in Outlook? Thanks in advance.”

Reasons for – Outlook.pst was not Cleanly Closed by the Last Program

There are various reasons that can result in Outlook 2013, 2016 won’t open because Outlook.pst file was not cleanly closed by the last program that used it. Few are listed below:

  • Shut Down: Before Outlook was closed, the Windows was shut down, this causes the occurrence of an error, PST file was not cleanly closed issue.
  • External Software: In case of third-party tool trying to access Outlook data or the add-ins which close the data improperly may result in the occurrence of the error.
  • Virus Attack: Virus attack on Outlook data can also result in the occurrence of error message
  • Corruption: The data file cannot be opened if the Microsoft Outlook crashes because of corruption. It further shows the error message i.e. “Outlook.pst was not cleanly closed by the last program”

The Sequence Of Starting the Outlook with Error Message

  • Start Outlook
  • An error message occurs i.e. the Outlook data file .pst was not cleanly closed by the last program that used it. The file is being checked in order to find problems.
  • A warning message is displayed that states “Performance might be affected while checking in the progress”. After some time the message comes “Data file check complete”
  • Email can be opened and accessed along with other Outlook components.

Also Read: How to fix Outlook error PST file cannot be found issue manually?

The user has to first assess the problem of the occurrence of the error. If the Outlook is taking too long to respond there could be a reason like the Outlook data file has reached the maximum size. Sometimes the size of PST file becomes too large which results in improper opening and accessing of Outlook files. There are chances of corruption of PST data file since Outlook.pst was not cleanly closed by the last program. In this regard, we will take the help of manual method in form of reducing the size of PST file or mend Outlook data files with ScanPST.exe file.

Use Inbuilt Utility ScanPST.exe File – Manual Approach

If archiving and compacting method does not solve the problem of error. Then the user can fix minor issues of PST file using ScanPST.exe file. Follow the instructions:

  • By exiting Outlook location, ScanPST.exe to be started manually. There is a variation in the location of inbuilt utility with respect to Outlook versions and different Windows OS. Locate Inbox Repair Tool or ScanPST.exe.
  • After that Browse the PST which is to be fixed, there should be the presence of extension .pst.
  • Then click on Options and also provide Scan Log Option.
  • Then Start button to be clicked. If some errors are detected then the file prompts to start the fixing process.
  • In order to avoid data loss, the backup file is created. The user can save the file in the preferred location.
  • Lastly, click on “Repair” button and Outlook to be started using the profile with PST file.

Use Professional Tool to Secure Data

The PST Repair Tool can be used to fix PST corruption which is the reason for many Outlook the error “Outlook.pst was not cleanly closed by the last program”. The application skillfully repairs PST without ScanPST.exe files with minor and major corruptions of personal folder file.

Download Now Purchase Now

Deduction in Size of PST File

There may be an error due to the oversized PST file. In that case, the size of the PST file has to be decreased. This can be done with archiving and compacting process.

  • Begin Outlook, move to File Tab. Click Info.
  • Click the Cleanup tools. Afterward, Click on Archive.
  • In the archive dialog box following steps have to be performed:
  1. Start Archive this folder and subfolders option
  2. Select the PST file to be archived from the list of folders
  3. Specify a date for items to be archived by choosing from the drop-down list with the name Archive items older than.
  4. Destination path and archive into new PST file to be selected as the user might be archiving a large number of email messages
  5. split Outlook PST file into smaller parts and save at a preferred location

Frequently Asked Questions

Q. What should I do if ScanPST fails repeatedly?

Here’s what to do if ScanPST does not work:

  • Try mending multiple times (some errors require repeated passes).
  • Create a new Outlook profile and import your PST file into it.
  • Use a reliable Outlook PST recovery software to salvage data.
  • Recover from a previous backup (if available) and restore.
  • Contact Microsoft Support.

Q. Why does Outlook say “.pst was not cleanly closed by the last program”?

This error typically appears when MS Outlook or your computer shuts down unexpectedly (e.g. forced shutdown, crash) leaving the PST file in an inconsistent state. Other triggers could be conflicting add-ins, background services or backup software accessing the PST improperly, or corruption in the file header.

Q. How can I prevent “.pst not cleanly closed” from happening again?

  • Always close Outlook gracefully before shutting down the system.
  • Avoid forced shutdowns or killing Outlook via Task Manager.
  • Keep third-party add-ins minimal and disable unnecessary ones.
  • Regularly back up your PST file and avoid letting it grow too large (archive/compact periodically).
  • Run antivirus scans and ensure no external software interferes with the PST during runtime.

Conclusion

The “Outlook.pst was not cleanly closed by the last program” error can disrupt your email access, but in most cases it’s restorable. Start with ScanPST and compacting or archiving your PST. If those fail, use a reliable PST recovery tool or restore from backup. To avoid future occurrences, always close Outlook properly, limit the use of add-ins, and routinely maintain your PST file.

  author

By Ashwani Tiwari

Being a Chief Technical Analyst, I am aware of the technicalities faced by the user while working with multiple technologies. So, through my blogs and articles, I love to help all the users who face various challenges while dealing with technology.