handled the gpu errors non-gracefully so that it stops
