Panic value formatting

The recoverPanic() middleware and backgroundTask() helper now use fmt.Errorf() with the %v verb to coerce the panic value into an error, rather than %s.