cover both close and close__python (even if they're the same)