Fixes missing event bubbling protection on close buttons

If an event handler is set via delegation on a parent container, as the modal is technically still a child of that container, the close action can lead to an undesirable bubbling. This commit fixes that by adding preventDefault and return false protection to all click events.