That wouldn't really help if there was any other on unload code in the file as it could be triggered.