Added a callback to webserver.stop, so that it behave more like a node js server