How do earthquakes stop? Insights from a minimal model of frictional rupture