improved die handler to allow exception hierarchy style trapping