fix: clean shutdown of webserver