Added comment for weird shutdown function.