Use mono_unhandled_exception for NET6
#6104
Merged
mono_unhandled_exception for NET6
#6104