Allowing chaining on the listen method and adding the close method

There were two important things missing in this module. The first one was the ability to close a http.Server and the second one was the ability to chain after the listening method.
Socket numbers are 0-7, so this will fail for socket #0, which is also coincidentally the first socket used when creating a server. Do a null check instead.