build_support: raise exception if gpu hang before tests run
In cases where a gpu hang is detected, this can lead to the build silently failing (e.g. in jenkins the build returns 0 and it thinks everything is fine when in reality the build should have failed)