Unable to close a message box

when I try to close a message box by clicking on “Ok” or “Close” button, that message box still stay open. to close it i need to press F12 to stop the process