handle panic/failure in resume()
handle panic/failure in resume()

The most likely cause for failure in handle.resume() is a panic
in the co-routine it was running. We can handle this condition by
setting the state to Finished, cleaning up and writing an error message.

troplin/mioco,3Hren/mioco