exit on trap