cleanup from failed header and footer