What if I have to go home earlier?

Discuss this well with the client.

You yourself may have to go home earlier or you may have been sent home earlier. There can be different reasons for both situations. In that case, always discuss this well with the client and make clear agreements about this.

Do you want to be sure? Then make sure you have email or app contact with the client about the situation. 

Having a good communicative relation with the client will help you in situations as stated above