Hey , if I want to stop the direct deposit by calling the irs because I just noticed the account it’s sending to is closed , what’s the latest I have to do this,?

My refund date is the 3rd of august .