Error handling for clean operation.