added http.shutdown for rescued exceptions