Dismiss modals on clicking on backdrop.