
The unsafe cast before would throw an exception if any other generic parameter than `Exception` was used without passing the class reference explicitly. It can now also be specified whether the exception handler is to be executed sync or async, defaulting to sync.