After you file

If that account is no longer valid then  that  bank will reject the direct deposit and send it back to the IRS will send you a paper check automatically and it is sent  to the address on your tax return.