Health check for echo and after_ui_footer logic hook

Hi,

I want to upgrade to last version, but Health check is not passing due to a custom module with echo php statement and the use of a after_ui_footer logic hook.

Can I just disable/remove the custom module, upgrade SugarCRM and then reinstall the custom module ?

Are echo statements and after_ui_footer logic hooks just not allowed for the upgrade procedure or no more at all ?

Thanks,

Jonathan