Fixed memory check during mdl_terminate