You can unload in the load event, it will just raise an error. One possible solution is to catch that error and exit the sub.