finally, safe shut down.