Improved handling of clicks on the "Cancel" button when pulling module meta data