cgi: more graceful error handling in absence of server