Bugs message errors and alert cannot close

I have a problem regarding error and success messages, automatically from scriptcase or using ajax message and sc_alert. You often encounter a hank cannot close the message, but the application can still run with the message closed that cannot be closed. Below I have attached an example of a message that experiences this.

Please provide a solution, because this will be a quite serious problem for users.

WhatsApp Image 2024-05-28 at 12.37.50_5610a396