After you file

Since the account is closed the bank will reject the deposit and send the refund back to the IRS.  The IRS will then mail a refund check to the address on the tax return.  The process to mail usually takes about two weeks after the refund is received by the IRS.