Improved error handling for archive modules