Updated Client to store failed events if the conection to the server
can not be completed