implements dirty-shutdown in web_server component