None of the intent flags worked for me, but this is how I fixed it:
When a user signs out from one activity I had to broadcast a message from that activity, then receive it in the activities that I wanted to close after which I call finish(); and it works pretty well.