Attempt to shutdown cleanly afterwards.