added exception handling in continuations
added tests
updated examples