handles shutdown better