Fix shutdownAllDevices