Now forcing content-length to complete file size
Better shutdown handling