handle exceptions thrown from FCGI (EPIPE, ...)

see http://stbuehler.de/debianserver/ruby-fcgi.html for more context