IMO, it is unreasonable to retain interest that was earned by the customer, regardless of how the account was closed. Even if the customer closed the account online, the bank processed the closure and applied (or should have applied) accrued interest belonging to the customer.
_________________________
Opinions are strictly my own, and have nothing to do with my employer.