Adding clientSide onServerFailure() method