Prevent removing plans in use. Fixes #19