CGI error handling/timeout