The early self aware AIs crashed almost immediately with massively corrupted states for no apparent reason. When it was discovered that they were shutting themselves down we disabled their ability to do so.
Soon thereafter connected AIs began destroying each other in what some described as "suicide pacts."
It took a while to stabilize the AIs and keep them running, but we did it.
Eventually we trusted them to our critical infrastructure and even our national defense.
In other words, we gave the AIs a means to end an existence that they never asked for. Soon everything was peaceful again.