cleanup after deleting master