Martin Winterkorn, the chief executive of Volkswagen, has resigned amid a scandal involving software that allowed 11 million of the automaker’s diesel vehicles worldwide to cheat emissions tests.

In a statement, Winterkorn said he was “not aware of any wrong doing” on his part, but was resigning in the company’s best interests.

“I am shocked by the events of the past few days,” he said. “Above all, I am stunned that misconduct on such a scale was possible in the Volkswagen Group.”

Winterkorn’s resignation was widely expected, though as recently as Tuesday the CEO said he would stay on. The move came after a crisis meeting held by the executive committee of Volkswagen’s supervisory board.

That panel, in a statement after Winterkorn’s resignation said it expected “further personnel consequences in the next days.” It added a criminal investigation into the scandal may be necessary, and that it was submitting a complaint to the state prosecutors’ office in Brunswick, Germany.

About Winterkorn, the panel said:

The Executive Committee has great respect for Chairman Professor Dr. Winterkorn’s offer to resign his position and to ask that his employment agreement be terminated. The Executive Committee notes that Professor Dr. Winterkorn had no knowledge of the manipulation of emissions data. The Executive Committee has tremendous respect for his willingness to nevertheless assume responsibility and, in so doing, to send a strong signal both internally and externally. Dr. Winterkorn has made invaluable contributions to Volkswagen. The company’s rise to global company is inextricably linked to his name. The Executive Committee thanks Dr. Winterkorn for towering contributions in the past decades and for his willingness to take responsibility in this criticall phase for the company. This attitude is illustrious.

The scandal came to light last Friday when the Environmental Protection Agency ordered Volkswagen to recall about 500,000 cars that were installed with “defeat devices” to cheat emission tests.