CLOSED-END FUND CUSTODY AGREEMENT