remove signal handlers from debug code