(bug) Unmanaged C# Export causing MT5 crash

 

I have been working with Unmanaged C# Exported code and MT5 and it appears that an unhandled exception crashes the entire terminal.

In C#

[DllExport("Bug1UnhandledErrorCrashesMetaTrader", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static void Bug1UnhandledErrorCrashesMetaTrader()
{
    throw new NotImplementedException();
}

 In an Expert:

#import "MetaTraderBugExamples.dll"
   void Bug1UnhandledErrorCrashesMetaTrader();
#import
int OnInit()
  {
   Bug1UnhandledErrorCrashesMetaTrader();
  }

 According to the documentation that shouldn't happen.

(Running 64-bit terminal and external dll.)