It turned out that server.close() does not shutdown server but stops it from accepting *new* connections. It's our responsibility to destroy all the current connections, if any.
Server is capable of routing and custom request handling - it's not static anymore.