[lipstick] Fix crash when shutting down.
Merge pull request #174 from sletta/crash-on-shutdown

[lipstick] Fix crash when shutting down.