Is your concern all of those TIME_WAITs? That could be normal behavior depending on how busy your web server is. After a connections is closed, that connection will stay in TIME_WAIT for some period (1 minute?).
Also, please look at the "code tag" comment in my signature.