Fix issue with detect_die crashing due to errors in response