After you file

Once the tax return has been filed the method to receive the tax refund cannot be changed.

When the IRS attempts to deposit the tax refund to the closed account, the refund will be rejected.  The IRS will then mail the refund check to the address entered on the tax return.