Added percentage free for fs_usage and moved http body close defer call to before the first return to prevent potential exesive FD usage