Cards def. Cubs 3-2 in rally; Cubs eliminated