Fix: modal close button execute the modal command

Make sure clicking the modal close button does not execute the modal command (such as remove)