Close modal when click outside of modal.