trap transitory exit with debug shell