Shut down cleanly.