centralize stack trace generation in Stash network calls using defer/panic/recover