[wsgi] Log exceptions