Error handling in removal logic.