Warn before leaving when you have changes. Fixes #341