Better handling of user-space exceptions in events handlers and formatters