Prevented Crash - IOError

If the output file from the script did not exist, probably due to the
script never having been run, the program would crash. Fixes this by
catching the IOError and running the maintenance script whenever it
occurs.