Cards' Molina, Matheny ejected after close play