improve logging of app errors; allow forwarding of app tracebacks