Added graceful shutdown on SIGHUP

I don't quite understand the placement of this.  It seems that the code will consider any HTTP/1.0 request a keepalive request as the result of this line?  Should it not be moved to after  line 229?