Attempt some cleanup after each script run.