Unhandled exception shutting down database engine using Server DLL
When an application uses the Server DLL model, shutting down the database engine by calling ctThrdTerm() may cause an unhandled exception in an internal thread. The logic has been modified to correct this.