Added an option to the header to close the connection instead of keeping it alive