emit event when error communicating with photon