Fixed more resource close warnings.