Leave onClose method in modal