Close sockets as soon as reply is sent.

This is an attempt to fix #6. Hopefully it also fixes the problem with
leaking fd's.
Remove url length check.

I sincerely doubt it actually made a difference.