allow the http service to cleanly exit