Update sdtest.py

added escape hatch - more egress() + exit in except statements