Add exception handling to fiber generation.

I am running into a problem with unbounded indices and need to debug.