My simple custom module stop the hls vod app to stop working

we use 4.8.9 and I am trying to add a dynamic cors headers based on the allowed list of domains. I created a simple custom module with no error when it just extends module base. But as soon as i add the interface IModuleOnApp then after restarting my app stops responding. There is no error on the logs. I tried manually enabling by adding debug to my module in log4j as i have seen somewhere. Nothing helps. Any hint?