Implement a mechanism to avoid deleting rules that are open for modification.
TODO: Identify areas where locking needs to be done other than the modify rule dialog.