MSG-478 Add event handler hook for errors that occur when sending

This will enable shift to handle GCM connection failures gracefully.