what is the safest way to shutdown the system?