cleanup rescue handler.