Avoid casting exceptions when passing remote event listener between appdomains by serializing instead of marshalling by reference.