Cleanup of the main script file.