public void cleanUp(){
		if(!canWrite)
			return;
		Logger.logLine("Writing files to disk...");
		matchDiskToLive();
		Logger.logLine("Cleaning up deleted files...");
		cleanFiles();
		Logger.logLine("Writing logs...");
		try{
			Logger.writeOut();
		}
		catch(IOException e){
                        Logger.log(e);
                    }
	}