Clean up header and session.