added function to handle errors coming from evmessage (proxy)