httpd: fix proper process exit in case of an error