end the request properly if rack app crash