We prob. need to type check `error` here. It can be other type, e.g., panicing a string. How about:

```go
 if err, ok := rec.(error); ok {
  reportCrash(err)
 } else if err, ok := rec.(string); ok {
  reportCrash(errors.New(err))
 }
```