Handle both starts and stops.