Add the ability to add protocol customized errors for the protocol parameters.
Fix bug when dlls were not loaded.