[lipstick] Fix crash when shutting down.