Add error handling for `after`.
Fix a very odd bug in handling exceptions in `after`
Modify flow test.
Modify test comment
Deprecate `domain.dispose`
Modify general test
Modify comment